package by.scsbsu.resources.managers;

import java.util.ResourceBundle;


public class PageLinksManager {
	
	public static final String PAGE_LINKS_BUNDLE = "by.scsbsu.resources.page_links";

    public static final String ERROR_PAGE_PATH = "ERROR_PAGE_PATH";
    public static final String LOGIN_PAGE_PATH = "LOGIN_PAGE_PATH";
    public static final String MAIN_PAGE_PATH =  "MAIN_PAGE_PATH";
    public static final String TEMPLATE_PAGE_PATH =  "TEMPLATE_PAGE_PATH";
    
    private static ResourceBundle resourceBundle = null;

    public static ResourceBundle getBundle() {
        if (resourceBundle == null) {
        	PageLinksManager.resourceBundle = 
        		ResourceBundle.getBundle(PAGE_LINKS_BUNDLE);
        }
        return resourceBundle;
    }

    public static String getProperty(String key) {
    	resourceBundle = getBundle();
        return resourceBundle.getString(key);
    }
}
